# distance.py

def hamming(v1, v2):
    """
    distance = [1 if x != y else 0 for x, y in zip(v1, v2)]
    :param v1, v2(1D numpy.ndarray)
    :rtype double(distance / n)
    """
    assert v1.shape == v2.shape
    return (v1 != v2).sum() / v1.size

def global_edit(v1, v2):
    pass

def local_edit(v1, v2):
    pass
